public class TestPrinter {
    public static void main(String[] args) {
        Printer m=new DotMatrixPrinter();
        m.print();
        Printer n=new InkretPringter();
        n.print();
        Printer k=new LaserPrinter();
        k.print();
    }
}
